package com.lantosec.hmrp.modules.category.vo;

import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.category.entity.AssetsPrintLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * 资产标签打印日志 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="AssetsPrintLog对象", description="资产标签打印日志")
public class AssetsPrintLogVO extends BaseVO<AssetsPrintLog> {
    private static final long serialVersionUID = 1L;


    public AssetsPrintLogVO(AssetsPrintLog entity){
        this.logId = entity.getLogId();
        this.assetsId = entity.getAssetsId();
        this.printTime = entity.getPrintTime();
        this.printUserId = entity.getPrintUserId();
        this.printUser = entity.getPrintUser();
    }

    @Override
    public AssetsPrintLog convertToEntity(){
        return new AssetsPrintLog(this);
    }


    @ApiModelProperty(value = "打印日志ID")
    private Integer logId;

    @ApiModelProperty(value = "资产ID")
    private String assetsId;

    @ApiModelProperty(value = "打印时间")
    private Date printTime;

    @ApiModelProperty(value = "打印人ID")
    private String printUserId;

    @ApiModelProperty(value = "打印人")
    private String printUser;


}
